package org.WhyMCA.WhyMCANews;

/**
@author Danilo '' Riso >> danilo DOT riso AT gmail DOT com
* @author Androidiani Dev Team
* @version 1.0
*/

import org.WhyMCA.Utils.Global;

import android.app.Activity;
import android.os.Bundle;
import android.os.CountDownTimer;

/**
 * Splashscreen activity class
 * @author danilo
 *
 */

public class Splashscreen extends Activity {
			
		/** Called when the activity is first created. */
	    @Override
	    public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.whymca_splash);
	      	Global.setCtx(this);
	        
	       new CountDownTimer(4000, 1000) {

	    		public void onTick(long millisUntilFinished) {
	    	    
	    		
	    			
	    		}

	    	    public void onFinish() {
	    	    
	    	    	endSPlash();
	    	        
	    	    }
	    	    
	    	}.start();
		
	}
			
	private void endSPlash() {
		
		this.finish();
		
	}
    
}
